Add child elements, event listeners, etc., to the shadow DOM using regular DOM methods. 일반적인 DOM 메소드를 사용해 자식 엘리먼트, 이벤트 리스너 등을 shadow DOM 에 추가합니다.
Merge Combine all non-conflicting attributes into the same tag and merge child elements according to their respective merging policy. 병합 충돌하지 않는 모든 특성을 같은 태그로 결합하고 각각의 병합 정책에 따라 하위 요소를 병합합니다.
Once you've defined the root element, you can add additional layout objects or widgets as child elements to gradually build a View hierarchy that defines your layout. 루트 요소를 정의한 후에, 더 많은 레이아웃 객체 또는 위젯을 하위 요소로 추가하여 계층적으로 레이아웃을 정의하는 뷰 계층을 구축할 수 있습니다.
If, for example, child elements need to be updated per frame and be painted you should investigate if it's faster to rearrange the layers to minimize the areas that need to be painted as much as possible. 예를 들어 만약 자식 엘리먼트가 프레임마다 업데이트되어야하고 페인트되어야 한다면 가능한한 많이 페인팅이 필요한 영역을 최소화하기 위해 레이어를 재배치하여 더 빨라질 수 있는지에 대해 확인하여야 합니다.